# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : __init__.py.py
@Time    : 2020/2/5 0005 16:51
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
from flask_restful import Api

from App.apis.movie_user.moive_hall_api import UserMovieHallsResource
from App.apis.movie_user.movie_order_api import MovieOrdersResource, MovieOrderResource
from App.apis.movie_user.movie_order_pay_api import MovieOrderPayResource
from App.apis.movie_user.movie_top_api import MovieTopResource
from App.apis.movie_user.movie_user_api import MovieUserResource

movie_user_api = Api(prefix='/user')
movie_user_api.add_resource(MovieUserResource, '/movieuser/', endpoint="movieusers")
movie_user_api.add_resource(MovieOrdersResource, '/movieorder/', endpoint="movieorders")
movie_user_api.add_resource(MovieOrderResource, '/movieorder/<int:order_id>', endpoint="movieorder")
movie_user_api.add_resource(UserMovieHallsResource, '/moviehalls/')
movie_user_api.add_resource(MovieOrderPayResource, '/pay/')
movie_user_api.add_resource(MovieTopResource, '/top/')

if __name__ == "__main__":
    pass
